package com.buba.system.service.impl;

import com.buba.system.dao.RoleMapper;
import com.buba.system.pojo.SystemUser;
import com.buba.system.pojo.SystemUserRole;
import com.buba.system.service.RoleService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

@Service    //@Service 用在服务提供者中，在类或者接口中声明
@DubboService   //暴露服务
public class RoleServiceImpl implements RoleService {
    private RoleMapper roleMapper;

    @Override
    public Set<SystemUserRole> selRoleByName(SystemUser systemUser) {
        return roleMapper.selRoleByName(systemUser);
    }



    @Autowired
    public void setRoleMapper(RoleMapper roleMapper) {
        this.roleMapper = roleMapper;
    }
}
